package com.zkn.orm.spring.data.jpa.repository;

import org.springframework.data.jpa.repository.JpaRepository;

import com.zkn.orm.spring.data.jpa.model.Department;

/**
 * Special parameter handling
 * Page<User> findByLastname(String lastname, Pageable pageable);
 * Slice<User> findByLastname(String lastname, Pageable pageable);
 * List<User> findByLastname(String lastname, Sort sort);
 * List<User> findByLastname(String lastname, Pageable pageable);
 * 
 * Limiting query results : 
 * User findFirstByOrderByLastname();
 * User findTopByOrderByAgeDesc();
 * Page<User> queryFirst10ByLastname(String lastname, Pageable pageable);
 * Slice<User> findTop3ByLastname(String lastname, Pageable pageable);
 * List<User> findFirst10ByLastname(String lastname, Sort sort);
 * List<User> findTop10ByLastname(String lastname, Pageable pageable);

 * List<Person> findByEmailAddressAndLastname(EmailAddress emailAddress, String lastname);
 * // Enables the distinct flag for the query
 * List<Person> findDistinctPeopleByLastnameOrFirstname(String lastname, String firstname);
 * List<Person> findPeopleDistinctByLastnameOrFirstname(String lastname, String firstname);
 * // Enabling ignoring case for an individual property
 * List<Person> findByLastnameIgnoreCase(String lastname);
 * // Enabling ignoring case for all suitable properties
 * List<Person> findByLastnameAndFirstnameAllIgnoreCase(String lastname, String firstname);
 * // Enabling static ORDER BY for a query
 * List<Person> findByLastnameOrderByFirstnameAsc(String lastname);
 * List<Person> findByLastnameOrderByFirstnameDesc(String lastname);
 * 
 * 
 * @author Administrator
 *
 */
public interface DepartmentJpaRepository extends JpaRepository<Department, Integer> {

	
}
